//
//  ListCell.swift
//  Swift列表显示
//
//  Created by 伍银荣 on 2021/12/10.
//  Copyright © 2021 com.WYR. All rights reserved.
//

import UIKit

//个人显示列表
class ListCell: UITableViewCell {
    
    
    
    @IBOutlet var nameLabel: UILabel!
    
    @IBOutlet var ageLabel: UILabel!
    
    var personData: PersonData?  {
        didSet {
           nameLabel.text = personData?.name
            ageLabel.text = String(personData?.age ?? 0)
        }
    }
    
    
//    override func awakeFromNib() {
//        super.awakeFromNib()
//        // Initialization code
//    }
//
//    override func setSelected(_ selected: Bool, animated: Bool) {
//        super.setSelected(selected, animated: animated)
//
//        // Configure the view for the selected state
//    }

}
